package com.shenfa.bean;

public class TreeNode{
	private String id;
	private boolean leaf = false;
	private String text;
	private boolean singleClickExpand = true;

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public boolean isLeaf() {
		return leaf;
	}

	public void setLeaf(boolean leaf) {
		if (leaf) {
			this.leaf = false;// 有下级节点
		} else {
			this.leaf = true;// 无下级节点
		}
	}

	public void setLeaf(String leaf) {
		if ("0".equals(leaf)) {
			this.leaf = true;
		} else {
			this.leaf = false;
		}
	}

	public void setLeaf(int leaf) {
		if (0 == leaf) {
			this.leaf = true;
		} else {
			this.leaf = false;
		}
	}

	public String getText() {
		return text;
	}

	public void setText(String text) {
		this.text = text;
	}

	public boolean isSingleClickExpand() {
		return singleClickExpand;
	}

	public void setSingleClickExpand(boolean singleClickExpand) {
		this.singleClickExpand = singleClickExpand;
	}

}
